<?php

namespace app\common;
require_once __DIR__.'/Controller.php';
use app\common\Controller;

require_once __DIR__.'/Auth.php';
use app\common\Auth;


//基类   权限控制器
class AuthController extends Controller
{

    public function __construct()
    {
        parent::__construct();
        $this->_initialize();
    }


    protected function _initialize()
    { 
        // 这里做权限控制
        $auth = new Auth();

        var_dump('调用权限控制');
        $auth->check();
    }

}





